package common

const (
	ErrorJsonParse = 10100
	ErrorReqParse = 10200
	ErrorBusiness = 30000
)

var errorText = map[int]string{
	ErrorJsonParse: "JSON 解析失败",
	ErrorReqParse: "JSON 参数解析失败",
	ErrorBusiness: "业务执行失败",
}

func ErrorText(code int) string {
	return errorText[code]
}
